package inv.cal.view;

import inv.cal.logic.Manager;
import inv.cal.logic.Week;

import java.awt.Color;
import java.awt.Component;

import javax.swing.JTable;

public class WeekCellRenderer extends NumberCellRenderer {
	private static final long serialVersionUID = 1141871238300121285L;
	Manager manager;
	
	public WeekCellRenderer(Manager manager) {
		this.manager	= manager;
	}

	@Override
	public Component getTableCellRendererComponent(JTable table, Object value,
			boolean isSelected, boolean hasFocus, int row, int column) {
		
		isSelected	= false;
		hasFocus	= false;
		Component c = super.getTableCellRendererComponent(table, value, isSelected, hasFocus,
				row, column);
		
		if(value instanceof Week){
			c.setBackground(Color.GRAY);
		}
		
		return c;
	}
	
}
